package com.heima.job;

import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author chenshan
 */
@Component
public class ScheduleTest {

    /**
     * 定时执行
     * 每三秒执行一次
     */
    // @Scheduled(cron = "0/3 * * * * ? ")
    public void testJob01() {
        System.out.println(System.currentTimeMillis());
    }
}
